#include "mainwindow.h"
#include <DApplication>
#include <DAboutDialog>
#include <QTranslator>
#include <DApplicationSettings>
int main(int argc, char *argv[])
{
//    DApplicationSettings *as=new DApplicationSettings;
    DApplication a(argc, argv);
    QUrl url=QUrl(QString::fromUtf8(argv[1]));
    QTranslator traslator;


    traslator.load(a.applicationDirPath()+"/dbrowser_zh_CN.qm");
    a.installTranslator(&traslator);
    a.loadTranslator();
    MainWindow w(url);
    w.show();
    a.setProductIcon(QIcon::fromTheme("deepin-browser"));
    a.setProductName("深度浏览器(非官方)");
    a.setApplicationVersion("开发版");
    a.setApplicationDescription("使用DTK开发的简易网页浏览器");

//    a.setApplicationDescription(url);
    return a.exec();
}
